﻿///<copyright>
/// Copyright © 2009 Stephen Styrchak. All Rights Reserved.
///</copyright>
using System;
using System.Collections.Generic;
using System.ComponentModel;

namespace Ferpect.ComponentModel.Sprites
{
    public abstract class SpriteAnimation : ControllerComponent
#if WINDOWS
        , IExtenderProvider
#endif
    {
        private List<Sprite> sprites;

        public SpriteAnimation()
        {
            this.sprites = new List<Sprite>();
        }

        public IList<Sprite> Sprites { get { return this.sprites; } }

        #region IExtenderProvider Members

        public bool CanExtend(object extendee)
        {
            return (extendee is Sprite);
        }

        #endregion
    }
}
